package com.cuitrip.business.bill;

import android.content.Context;

import com.cuitrip.service.R;
import com.lab.adapter.IAdapterData;

/**
 * Created by baziii on 15/8/18.
 */
public class BillData implements IAdapterData {

    private int status;
    private int type;
    private String billId;
    private String title;
    private String moneyType;
    private String money;
    private String cashCurrency;
    private String cashPrice;
    private String userNick;
    private String headPic;
    private long gmtCreated;
    private  String paypal;
    private int statusString;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getPaypal() {
        return paypal;
    }

    public void setPaypal(String paypal) {
        this.paypal = paypal;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMoneyType() {
        return moneyType;
    }

    public void setMoneyType(String moneyType) {
        this.moneyType = moneyType;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getCashCurrency() {
        return cashCurrency;
    }

    public void setCashCurrency(String cashCurrency) {
        this.cashCurrency = cashCurrency;
    }

    public String getCashPrice() {
        return cashPrice;
    }

    public void setCashPrice(String cashPrice) {
        this.cashPrice = cashPrice;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public long getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(long gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public String getStatusString(Context context) {
        switch (status){
            case 1:
                return context.getString( R.string.withdraw_state_process);
            case 2:
                return context.getString( R.string.withdraw_state_complete);
            case 3:
                return context.getString( R.string.withdraw_state_fail);
            default:
                return "";
        }
    }
}
